<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    

    <script src="../lib/jquery/jquery.min.js"></script>
    <script>

        $.ajax({

            url: 'http://bufantec.com/api/test/user/save',
            method: 'POST',
            contentType: 'application/x-www-form-urlencoded',
            data: {
                name: "李白666", // 昵称
                age: 14,
                sex: 0,
                tel: 12346578,
                address: "长安城东北角",
                school: "长安吟诗学院",
                username: "521", // 登录名
                password: 123456
            },
            success(res){
                console.log(res);
            }
        })

        $.get('http://www.bufantec.com/api/test/user/list', { start: 2, limit: 11 }, function (res, status) {
            console.log(res, status);
        })

        $.post('http://bufantec.com/api/test/user/save', {
            name: "李白666", // 昵称
            age: 14,
            sex: 0,
            tel: 12346578,
            address: "长安城东北角",
            school: "长安吟诗学院",
            username: "526", // 登录名
            password: 123456
        }, function (res, status) {
            console.log(res, status);
        })
    </script>
</body>
</html>